﻿using Microsoft.Phone.Controls;
using CDFWPUG.ViewModel;

namespace CDFWPUG.Views
{
    /// <summary>
    /// Description for pageNews.
    /// </summary>
    public partial class pageNews : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes a new instance of the pageNews class.
        /// </summary>
        public pageNews()
        {
            InitializeComponent();
        }

        private void btnRefresh_Click(object sender, System.EventArgs e)
        {
            var vm = DataContext as pageNewsViewModel;
            if (vm != null)
            {
                vm.NewsRefreshCommand.Execute(null);
            }
        }
    }
}